/*
 * @(#)AboutDialog.java        0.1 09/04/29
 * @version 	0.1 29 Apr 2009
 * @author 	Do Van Khang
 * Hop thoai cung cap thong tin ve chuong tinh va nhom tac gia 
 */


package GUI;

import javax.swing.*;
import java.util.*;
import java.awt.*;

public class AboutDialog extends JDialog {
	ResourceBundle lang;
	
	public AboutDialog(JFrame f) {
		super(f);
		lang = Options.getLanguage();
		
		super.setTitle(lang.getString("AboutDialog.text"));
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		setSize(250, 150);
		Toolkit toolkit = Toolkit.getDefaultToolkit();
		Dimension screenSize = toolkit.getScreenSize();
		int x = (screenSize.width - getWidth()) / 2;
		int y = (screenSize.height - getHeight()) / 2;
		setLocation(x, y);
		setVisible(true);
		
		JPanel panel = new JPanel(new GridLayout(0, 1));
		add(panel);
		panel.add(new JLabel("JCG"));
		panel.add(new JLabel("Trần Đại Hiệp"));
		panel.add(new JLabel("Nguyễn Thắng Huy"));
		panel.add(new JLabel("Đỗ Văn Khang"));
		panel.add(new JLabel("Trần Xuân Thành"));
		//JButton exitButton = new JButton(lang.getString("AboutDialog.exitButton.text"));
		//panel.add(exitButton);
	}
}
